const LoginManager = () => import(/* webpackChunkName: "login-manager" */ '@/views/login-manager/index');
const Login = () => import(/* webpackChunkName: "login-manager" */ '@/views/login-manager/login');
const ForgetPassword = () => import(/* webpackChunkName: "login-manager" */ '@/views/login-manager/forget-password');
// const RegisterMobile = () => import(/* webpackChunkName: "login-manager" */ '@/views/login-manager/register/register-mobile');
// const RegisterAccount = () => import(/* webpackChunkName: "login-manager" */ '@/views/login-manager/register/register-account');

import MemberDetail from '@/components/member-detail/main';
import CreditUp from '@/components/credit-up/main';
import CreditUpAgent from '@/components/credit-up-agent/main';

export default [
  {
    path: '/login',
    component: LoginManager,
    beforeEnter: (to, from, next) => {
      MemberDetail.closeAll();
      CreditUp.closeAll();
      CreditUpAgent.closeAll();
      next();
    },
    meta: {
      showTopNav: false,
    },
    children: [
      {
        path: '',
        name: 'login',
        component: Login,
        meta: {
          header: false,
          footer: false,
        },
      },
      {
        path: '/forget-password',
        name: 'forget-password',
        component: ForgetPassword,
        meta: {
          header: false,
          footer: false,
        }
      },
      // {
      //   path: '/register/mobile',
      //   name: 'register',
      //   component: RegisterMobile,
      //   meta: {
      //     header: false,
      //     footer: false,
      //   }
      // },
      // {
      //   path: '/register/account',
      //   name: 'registerAccount',
      //   component: RegisterAccount,
      //   meta: {
      //     header: false,
      //     footer: false,
      //   }
      // },
    ]
  },
];
